//Person.prototype --原型 ={}

Person.prototype.name = '启明'
Person.prototype.say = function(){
    console.log('hahahahaha')
}
function Person(){
//this.name = '昭君'

}
//console.log(Person.name)//Person

// var Person = new Person()
// console.log(Person.name)

var person = new Person()
console.log(person.name)//昭君
//console.log(person.say())

//他定义了构造函数制造出来的对象的公共祖先
console.log(person)
person.say()

